const KoaRouter = require('@koa/router')
const { verifyAuth } = require('../middleware/login.middleware')
const taskController = require('../controller/task.controller')

const taskRouter = new KoaRouter({ prefix: '/task' })

taskRouter.get('/list', verifyAuth, taskController.fetchTaskList)

taskRouter.post('/update', verifyAuth, taskController.updateTask)

module.exports = taskRouter